package net.sea.setup.ui.wizard.factory.db;

import net.sea.setup.ui.wizard.enums.OpEvent;

/**
 * 数据库对象
 * 
 * @author 华成伍
 *
 */
public class DataBase {
	/**
	 * 数据库类型
	 */
	private String dbType;
	/**
	 * 数据库服务器地址
	 */
	private String host;
	/**
	 * 数据库端口号
	 */
	private Integer port;
	/**
	 * 数据库名称
	 */
	private String dbName;
	/**
	 * 数据库连接地址
	 */
	private String url;
	/**
	 * 数据库驱动类
	 */
	private String driverClass;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 数据库名称的显示名称
	 */
	private String dbNameTip;
	/**
	 * 自选数据库驱动
	 */
	private String customDriver;
	/**
	 * 操作类型，0-初始化，1-下拉切换，2-文本框或数字框修改
	 */
	private OpEvent opType;
	/**
	 * 默认的数据库驱动jar包地址
	 */
	private String defaultDriverJar;

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public String getDbName() {
		return dbName;
	}

	public void setDbName(String dbName) {
		this.dbName = dbName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDbNameTip() {
		return dbNameTip;
	}

	public void setDbNameTip(String dbNameTip) {
		this.dbNameTip = dbNameTip;
	}

	public String getCustomDriver() {
		return customDriver;
	}

	public void setCustomDriver(String customDriver) {
		this.customDriver = customDriver;
	}

	public String getDriverClass() {
		return driverClass;
	}

	public void setDriverClass(String driverClass) {
		this.driverClass = driverClass;
	}

	public OpEvent getOpType() {
		return opType;
	}

	public void setOpType(OpEvent opType) {
		this.opType = opType;
	}

	public String getDefaultDriverJar() {
		return defaultDriverJar;
	}

	public void setDefaultDriverJar(String defaultDriverJar) {
		this.defaultDriverJar = defaultDriverJar;
	}
}
